-
Notifications
You must be signed in to change notification settings - Fork 357
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(accordion): prop for heading level #2176
Conversation
PatternFly-React preview: https://2176-pr-patternfly-react-patternfly.surge.sh |
Thanks for posting this! I'm cc'ing @seanforyou23 on my comment to get his input on some things. There are some aspects of this update that are still open questions that I'd like other opinions on, and then there are a few minor things that I noticed. Open questions:
Miscellaneous issues:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See my previous comments for requested updates.
@jgiardino @seanforyou23 unless we default to h3 it would be considered a breaking change |
- @patternfly/[email protected] - @patternfly/[email protected] - @patternfly/[email protected] - [email protected] - @patternfly/[email protected]
* feat(virtualized): add virtualized table extensions * fix eslint * snaps * clean a little * fix window scroller scrollbar
I was wondering if that would be the case. I was trying to think of a situation where changing the heading level from h3 to h1 would break something? The styles wouldn't be affected unless they had created custom styles based on the html element. And if that's the only case, I think it could be argued whether or not we would support that. But I could also see the case for a general rule of changing element type being considered a breaking change, just to simplify things. Anyway, I'm totally fine with defaulting to the default we have now ( |
- @patternfly/[email protected] - @patternfly/[email protected] - @patternfly/[email protected] - @patternfly/[email protected]
…e should be visible (patternfly#2175)
- @patternfly/[email protected] - @patternfly/[email protected] - @patternfly/[email protected] - [email protected] - @patternfly/[email protected] - @patternfly/[email protected]
@jenny-s51 just a heads up, we're going to have merge conflicts between this PR and my TypeScript conversion of the Accordion (#2121) so depending on whose PR gets merged first, either you or I will need to port your changes over to the TypeScript version. |
sounds good, thank you for this info |
patternfly#2193) * fix(charts): align label vertically and add defaults for donutHeight donutWidth Fixes patternfly#2191 Fixes patternfly#2192 * fix(charts): apply defaults to custom legend patternfly#2194
… TS (patternfly#2190) * convert react-virtualized-extension to typescript * fix babelrcs and package.json * hoist babel config and use json * fix jest test * fix circular dependency * fix pf3 build
…e`. It will be ignored. (patternfly#2195)
- [email protected] - [email protected] - [email protected] - @patternfly/[email protected] - @patternfly/[email protected] - @patternfly/[email protected] - @patternfly/[email protected] - @patternfly/[email protected] - [email protected] - @patternfly/[email protected] - @patternfly/[email protected] - @patternfly/[email protected] - @patternfly/[email protected] - @patternfly/[email protected] - @patternfly/[email protected]
I'm recapping here some of what we discussed last week... @jschuler had raised the question about whether heading levels are required for this pattern, and if just the Here are a few examples of accordions out there: The first 3 use headings, without a definition list. The last link includes an example, "Simple Accordion", that uses a definition list and not headings. Our pattern uses both, but instead, we should use one or the other. Our core code supports not including a heading, but it doesn't support not using the My strongest opinion about this is that we should support the example provided by the WAI-ARIA authoring practices, and will continue to want to have a variation that uses headings. I will capture an issue in core to create an example that allows for just headings and no definition list. For this PR, I think we can move forward with allowing the consumer to specify the heading list, using the structure that we currently have. But I also defer to the main contributors to this repo on what they would recommend, if we expect other changes to be needed based on updates in core. Last week, @seanforyou23 had shared some thoughts about what the default heading level should be in the case where the consumer doesn't specify one. I'm not sure that's something that can/should be addressed in this PR. Here are some comments on that:
|
Are we still planning to have one |
BTW, here is the issue that I created in core: patternfly/patternfly#1913 |
That would be my preference. |
* chore(package): Bump @patternfly/patternfly versions to 2.12.5 * fix build failure * fix buil failure * tweak glob
* Converted backdrop component to typescript * Add demo and tests
- @patternfly/[email protected] - @patternfly/[email protected] - @patternfly/[email protected] - @patternfly/[email protected] - [email protected] - @patternfly/[email protected] - @patternfly/[email protected] - @patternfly/[email protected] - @patternfly/[email protected] - @patternfly/[email protected] - @patternfly/[email protected] - @patternfly/[email protected]
Added breakpoint to list of available breakpoints and updated snapshot. Fixes patternfly#2198
- @patternfly/[email protected] - @patternfly/[email protected]
- @patternfly/[email protected] - @patternfly/[email protected] - @patternfly/[email protected] - @patternfly/[email protected] - [email protected] - @patternfly/[email protected] - @patternfly/[email protected] - @patternfly/[email protected] - @patternfly/[email protected]
- @patternfly/[email protected] - @patternfly/[email protected] - @patternfly/[email protected] - [email protected] - @patternfly/[email protected] - @patternfly/[email protected] - @patternfly/[email protected]
…patternfly#2166) * Began conversion of application launcher to typescript * fix imports and onSelect * Fix linting errors * Fix imports * Fix imports * Create demo and tests * Fix onSelect and add tests * Address feedback * Address feedback * Add space for linting
* Get started on card image and actions support * Made checkbox functional * Add additional card examples * Fix images * Fix example images * Address comment * Change positioning of dropdown * Change Checkbox component to checked input
* chore(TextArea): Convert TextArea to typescript patternfly#1953 * updates for review commnents * update for review commnets * fix linting error
It's strange that your branch has so many commits from other PRs.. did you merge master into your branch? It's probably better to do a git rebase instead of a git merge when you're updating your PR with the latest master, to keep the commit history straightforward. |
Closing this. New PR #2273 has been opened to resolve the issue. |
What: closes #1881 : allows heading level to be set by user; uses h1 as default